package com.tabview.difficultpoint;

import android.content.Context;
import android.view.View;
import android.widget.ListView;

import com.xudow.app.R;

/**
 * 作者：zhouXJ on 2016/3/30 11:34
 */
public class CourseDifficultPointAdapter extends BaseUiArrayAdapter<CourseDifficultPointContent, CourseDifficultPointHolder> {
    String title;
    private Context context;
    private ListView listView;

    public CourseDifficultPointAdapter(Context context, ListView listView,String title) {
        super(context, R.layout.course_difficult_point_item_layout);
        this.context = context;
        this.listView = listView;
        this.title=title;
    }

    @Override
    protected CourseDifficultPointHolder createHolder(View view) {
        return new CourseDifficultPointHolder(view, context, listView,title);
    }

    @Override
    protected void bundleValue(int position, CourseDifficultPointHolder holder, CourseDifficultPointContent item) {
        holder.bind(item, position);
    }
}
